Using R for Linear Regression

ثبت نشده
چکیده

In the following handout words and symbols in bold are R functions and words and symbols in italics are entries supplied by the user; underlined words and symbols are optional entries (all current as of version R-2.4.1). Sample texts from an R session are highlighted with gray shading. Suppose we prepare a calibration curve using four external standards and a reference, obtaining the data shown here: The expected model for the data is signal = β o + β 1 ×conc where β o is the theoretical y-intercept and β 1 is the theoretical slope. The goal of a linear regression is to find the best estimates for β o and β 1 by minimizing the residual error between the experimental and predicted signal. The final model is signal = b o + b 1 ×conc + e where b o and b 1 are the estimates for β o and β 1 and e is the residual error. To complete a linear regression using R it is first necessary to understand the syntax for defining models. Let's assume that the dependent variable being modeled is Y and that A, B and C are independent variables that might affect Y. The general format for a linear 1 model is response ~ op1 term1 op2 term 2 op3 term3… 1 When discussing models, the term 'linear' does not mean a straight-line. Instead, a linear model contains additive terms, each containing a single multiplicative parameter; thus, the equations y = β 0 + β 1 x y = β 0 + β 1 x 1 + β 2 x 2 y = β 0 + β 11 x 2 y = β 0 + β 1 x 1 + β 2 log(x 2) are linear models. The equation y = αx β , however, is not a linear model.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Application of ANFIS and linear regression models to analyze the energy and economics of lentil and chickpea production in Iran

In the present study, the energetic and economic modeling of lentil and chickpea production in Esfahan province of Iran was conducted using adaptive neuro-fuzzy inference system (ANFIS) and linear regression. Data were taken by interviewing and visiting of 140 lentil farms and 110 chickpea farms during 2014-2015 production period. The results showed that the yield and total energy consumpti...

متن کامل

Application of ANFIS and linear regression models to analyze the energy and economics of lentil and chickpea production in Iran

In the present study, the energetic and economic modeling of lentil and chickpea production in Esfahan province of Iran was conducted using adaptive neuro-fuzzy inference system (ANFIS) and linear regression. Data were taken by interviewing and visiting of 140 lentil farms and 110 chickpea farms during 2014-2015 production period. The results showed that the yield and total energy consumpti...

متن کامل

Application of non-linear regression and soft computing techniques for modeling process of pollutant adsorption from industrial wastewaters

The process of pollutant adsorption from industrial wastewaters is a multivariate problem. This process is affected by many factors including the contact time (T), pH, adsorbent weight (m), and solution concentration (ppm). The main target of this work is to model and evaluate the process of pollutant adsorption from industrial wastewaters using the non-linear multivariate regression and intell...

متن کامل

Using Neural Networks with Limited Data to Estimate Manufacturing Cost

Neural networks were used to estimate the cost of jet engine components, specifically shafts and cases. The neural network process was compared with results produced by the current conventional cost estimation software and linear regression methods. Due to the complex nature of the parts and the limited amount of information available, data expansion techniques such as doubling-data and data-cr...

متن کامل

Interval linear regression

‎In this paper‎, ‎we have studied the analysis an interval linear regression model for fuzzy data‎. ‎In section one‎, ‎we have introduced the concepts required in this thesis and then we illustrated linear regression fuzzy sets and some primary definitions‎. ‎In section two‎, ‎we have introduced various methods of interval linear regression analysis‎. ‎In section three‎, ‎we have implemented nu...

متن کامل

Application of Body Measurements of Blackhead Somali Sheep as Parameters for Estimation of Live Weight

Sheep and goat have a great role in the economy of the pastoral communities which have inhabited in the lowland parts Ethiopia. The study was conducted in Borana low land southern Ethiopia to predict the body weight of blackhead Somali (BHS) sheep using linear body measurements under farm condition. A total of 478 heads (301 female and 177 males) were measured for linear body measurements and b...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007